package com.medvalley.tcm.dao;


import com.medvalley.tcm.domain.Doctor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;


public interface DoctorDao extends JpaRepository<Doctor, Long>, JpaSpecificationExecutor {

    Doctor findOneByPhone(String phone);

//    Page<Doctor> findAll(Specification<Doctor> specification, Pageable pageable);

}
